package com.example.demo.util;

public class Generic {

    /**
     * 泛型方法
     */

    public <T>  T getObject(Class<T> c) throws IllegalAccessException, InstantiationException {
        T t = c.newInstance();
        return t;
    }
}
